package com.luanye.enjoy.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.experimental.Accessors;

@Data@Builder@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("enjoy_village")
public class Village  {
    //主键id
    @TableId
    private Long id;

    //村名
    private String villageName;
    //标签
    private String tag;
    //经度
    private String x;
    //纬度
    private String y;
    //浏览量
    private Long views;
    //位置
    private String location;
    //封面
    private String cover;
    //省
    private String province;
    //市
    private String city;
    //区
    private String district;
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    private Integer delFlag;
    //全景图
    private String panorama;
    //公告
    private String notice;
    //简介
    private String summery;
    //图集
    private String img;
    //是否审核， 0表示未审核
    private Integer isCheck;
    //承诺书
    private String promiseImg;
    //优质标记 0 非优质 1 优质
    private Integer qualitySign;
    //是否草稿 0 草稿 1 非草稿
    private Integer isDraft;

    @TableField(exist = false)
    private Double distance;

    @TableField(exist = false)
    private List<Beauty> beauties;

}
